﻿namespace Quail.Silverlight
{
    /// <summary>
    /// Wraps a silverlight image
    /// </summary>
    public class SlvImage : SlvControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SlvImage"/> class.
        /// </summary>
        public SlvImage()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvImage"/> class.
        /// </summary>
        /// <param name="container">The container for the control.</param>
        /// <param name="selector">The selector.</param>
        public SlvImage(SlvControlContainer container, string selector)
            : base(container, selector)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SlvImage"/> class.
        /// </summary>
        /// <param name="control">The control.</param>
        public SlvImage(SlvControl control)
            : base(control)
        {
        }

        /// <summary>
        /// Gets Text contained in the image's tool-tip
        /// </summary>
        public string ToolTipText
        {
            get
            {
                return GetPropertyValue("ToolTipText");
            }
        }
    }
}
